package com.woniuxy.goods.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 15489  <br/>
 * Date: 2022/3/25:15:04  <br/>
 * Description:
 */

@RestController
@RequestMapping("/port")
public class Port {
    @Value("${server.port}")
    private String port;
    @GetMapping("/get")
    public String getPort(){
        try {
            Thread.sleep(3);
        }catch (Exception e){
            e.printStackTrace();
        }
        return port;
    }
}
